package com.purchase.util;

import org.apache.commons.lang3.concurrent.BasicThreadFactory;

import java.util.concurrent.*;

/**
 * @author saw
 */
public class ScheduledExecutor {

    /**
     * 抢购线程池
     */
    public final static ScheduledExecutorService EXECUTOR = new ScheduledThreadPoolExecutor(50,new BasicThreadFactory
            .Builder()
            .namingPattern("schedule-pool-%d")
            .daemon(true)
            .build());

}
